import App from './App'
// 条件编译（让某些语法只在特定环境中执行）
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

// 全局注册
import CakeList from './components/cake-item.vue'
Vue.component('cake-list',CakeList)
import FootBar from './components/foot-bar.vue'
Vue.component('foot-bar',FootBar)
import CustomNav from './components/custom-nav.vue'
Vue.component('custom-nav',CustomNav)
import CakePop from './components/cake-pop.vue'
Vue.component('cake-pop',CakePop)
// 引入store
import store from './store'
// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)

//图鸟UI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)

const app = new Vue({
   store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif